package com.ushine.web.component.excel.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: yls
 * @Date 2021/10/26 15:15
 * @Description: 订单对象
 * @Version 1.0
 **/
@Data
public class OrderDO {
    @Excel(name = "ID", width = 10,needMerge = true)
    private Long id;

    @Excel(name = "订单号", width = 20,needMerge = true)
    private String orderSn;

    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss",needMerge = true)
    private Date createTime;

    @Excel(name = "收货地址", width = 20,needMerge = true )
    private String receiverAddress;

    @ExcelEntity(name = "会员信息")
    private MemberDO member;

    @ExcelCollection(name = "商品列表")
    private List<ProductDO> productList;
}
